#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9999;
}

#backToTop.show {
  opacity: 0.8;
  pointer-events: auto;
}

#backToTop.show:hover {
  transform: scale(1.2);
  opacity: 1;
}

/* Supprime les marges par défaut du navigateur */
body {
    margin: 0;
}

/* Rectangle blanc en haut */
.rectangle-haut {
    width: 100%;          /* toute la largeur */
    height: 90px;         /* hauteur */
    background-color: #7c8095;
	margin : 0px;
}

<style>

    /* RESET & VARIABLES */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
    body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; line-height: 1.6; color: #fff; background: #080f24; }
    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }

    :root {
      --primary: #577275; /* #EFC87D; */
      --secondary: #12474d; /*  #4b4920; */
      --dark: #111;
      --light: #fff;
    }
    
      
 /* HEADER */
        header {
      position: fixed;
      top: 0; 
	  left: 0; 
	  width: 100%;
      display: flex; justify-content: space-between; align-items: center;
      padding: 1rem 2rem;
      background: rgba(17,17,17,0.6);
      backdrop-filter: blur(10px);
      border-bottom: 1px solid rgba(255,255,255,0.1);
      z-index: 1000;
    }
    header .logo { font-weight: 700; font-size: 1.3rem; margin-left: 0; width: auto; }
    header nav ul { display: flex; gap: 0.7rem; list-style: none; margin-right : 50px; }
    header nav a { color : black; font-weight: 500; transition: color 0.3s; text-decoration: none;}
    header nav a:hover { color: #577275; }
    
    .logo img {
  height: 70px;      /* taille logo */
  width: auto;       /* garde les proportions */
  display: block;
}


.logo img:hover {
  opacity: 0.85;
}

    /* HERO / CAROUSEL */
    .hero {
      margin-top: 20px;
	  margin-bottom: 0px;
      position: relative;
      overflow: hidden;
      height: 750px;
      width : 100%;
    }
    .carousel {
      display: flex;
      transition: transform 0.7s ease-in-out;
      height: 700px; 
	  margin-bottom: 0;     /* supprime tout écart inutile */
  padding-bottom: 0;    /* idem */
    }
    .slide {
      min-width: 100%;
      height: 100%;
      position: relative;
      display: flex; align-items: center; justify-content: center;
      color: white;
	  transition: transform 0.8s ease-in-out; 
    }
    .slide img {
      position: absolute;
      top: 0; left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
      filter: brightness(0.6);
    }
    .slide-content {
      text-align: center;
      max-width: 700px;
	  width: 500px;               /* largeur fixe */
  height: 250px;              /* hauteur fixe */
  padding: 20px;              /* garde un peu d’espace à l’intérieur */
      background: rgba(0,0,0,0.6);
	   box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
      border-radius: 12px;
    }
    .slide-content h1 {
      font-size: 3rem;
      font-weight: 700;
      margin-bottom: 1rem;
      background: linear-gradient(to right, var(--primary), var(--secondary));
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }
    .slide-content p {
      font-size: 1.2rem;
      margin-bottom: 2rem;
    }
    .slide-content a {
      display: inline-block;
      padding: 0.8rem 1.6rem;
      background: linear-gradient(45deg, var(--primary), var(--secondary));
      color: white;
      border-radius: 30px;
      font-weight: 600;
      transition: opacity 0.2s;
    }
   
   .slide-content a:hover {
  color: #000000;
  transform: scale(1.1);
  background: linear-gradient(
    135deg,
    #999 0%,
    #777 50%,
    #999 100%
  );
  background-size: 200% 200%;
  animation: bgMove 2s linear infinite;
}

    /* CONTROLS */
    .controls {
      position: absolute;
	  left: 50%;
      transform: translateX(-50%);
      display: flex; 
	  gap: 10px;
    }
    .dot {
      width: 12px; height: 12px;
      border-radius: 50%;
      background: rgba(255,255,255,0.5);
      cursor: pointer;
      transition: background 0.3s;
	  margin-top: 20px;
	   margin-bottom: 0;
    }
    .dot.active { background: white; }

    .arrow {
      position: absolute;
      top: 48%;
      transform: translateY(-50%);
      font-size: 2rem;
      color: white;
      padding: 0.5rem 0.9rem;
      cursor: pointer;
      user-select: none;
      transition: background 0.3s;
    }
    .arrow:hover { background: rgba(0,0,0,0.6); }
    .arrow.left { left: 20px; }
    .arrow.right { right: 20px; }

    /* SECTION PRESENTATION */
	
    .presentation {
      background: linear-gradient(180deg, var(--primary), var(--secondary));
      color: white;
      padding: 6rem 2rem;
    }
    .presentation h2 {
      font-size: 3rem;
      margin-bottom: 3rem;
      text-align: center;
	  font-variant-caps: small-caps; /* les minuscules deviennent petites majuscules */
    }
    .presentation-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 3rem;
      max-width: 1000px;
      margin: auto;
      align-items: center;
    }
    .presentation-grid img {
      border-radius: 12px;
    }
    .presentation-grid p {
      font-size: 1.2rem;
      line-height: 1.8;
    }
	
	/* ===== TEAM SECTION (fix flex) ===== */
	
.team {
  background: #1b1b1b;
  color: #111;
  padding: 6rem 2rem;
  font-size: 3rem; /* ajuste selon ton design */
  text-align: center;
}

/* Effet dégradé animé uniquement si supporté */
@supports (-webkit-background-clip: text) {
  .team {
    background-image: linear-gradient(90deg, #577275, #12474d , #6ca0a3, #89c2c8, #577275);
    -webkit-text-fill-color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 300% auto;
    animation: textgradient 20s linear infinite;
  }

  @keyframes textgradient {
    from {
      background-position: 0% center;
    }
    to {
      background-position: 300% center;
    }
  }

.team h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 4rem;
   color: #ffe5c7; 
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-caps: small-caps; /* les minuscules deviennent petites majuscules */
}

/* 2 colonnes en desktop, alternance gauche/droite */
.team-block {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 6rem auto;
}
.team-block img {
  flex: 1 1 50%;
  max-width: 520px;      /* pour éviter qu’elle prenne trop de place */
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.team-text {
  flex: 1 1 50%;
  text-align: left;      /* surpasse ton style global `section{ text-align:center; }` */
}

.team-text h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: hsl(var(--primary), var(--secondary));
}

.team-text p {
  font-size: 1.1rem;
  line-height: 1.7;
}

/* Inversion simple pour alterner */
.team-block.reverse { flex-direction: row-reverse; }

/* Mobile : pile en colonne, centré */
@media (max-width: 768px) {
  .team-block,
  .team-block.reverse { 
    flex-direction: column;
    text-align: center;
  }
  .team-text { text-align: center; }
  .team-block img { max-width: 100%; }
}
    /* FOOTER */
    footer {
      padding: 2rem;
      text-align: center;
      font-size: 0.9rem;
      color: rgba(255,255,255,0.7);
      background: #111;
      border-top: 1px solid rgba(255,255,255,0.1);
    }

    @media(max-width: 900px) {
      .presentation-grid {
        grid-template-columns: 1fr;
        text-align: center;
      }
	  
	  /* SOCIAL MEDIA */
.social-media {
  padding: 2rem 2rem;
  text-align: center;
  background: #1a1a1a;
}

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto 2rem auto;
  align-items: center;
  justify-items: center;
}

.social-grid img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  filter: grayscale(80%);
  transition: transform 0.3s, filter 0.3s;
  cursor: pointer;
}

.social-grid img:hover {
  filter: none;
  transform: scale(1.2);
}

.social-button a {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: linear-gradient(45deg, var(--primary), var(--secondary));
  color: white;
  border-radius: 30px;
  font-weight: 600;
  transition: opacity 0.3s, transform 0.3s;
}

.social-button a:hover {
  opacity: 0.85;
  transform: scale(1.05);
}
  #gamePopup {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: #ff6a00;
      color: white;
      padding: 1rem 1.5rem;
      border-radius: 10px;
      cursor: pointer;
      z-index: 20;
      box-shadow: 0 4px 10px rgba(0,0,0,0.4);
      font-weight: bold;
      display: none; /* Pop-up caché par défaut */
    }

    #snakeContainer {
      position: fixed;
      bottom: 20px;
      right: 20px;
      width: 300px;
      height: 350px;
      background: #222;
      border: 3px solid #ff6a00;
      display: none;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 30;
      border-radius: 10px;
      padding: 10px;
      box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }

    #closeGame {
      position: absolute;
      top: 5px;
      right: 5px;
      font-weight: bold;
      cursor: pointer;
      color: #ff6a00;
      font-size: 18px;
    }

    canvas { background: #222; }

    .controls {
      margin-top: 10px;
      display: flex;
      gap: 10px;
    }

    button {
      padding: 5px 10px;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-weight: bold;
    }

    .stop { background: #ff0000; color: #fff; }
    .restart { background: #00ff00; color: #000; }

    #message {
      margin-top: 10px;
      color: #ff6a00;
      font-weight: bold;
      min-height: 20px;
      text-align: center;
    }
	

}
  </style>
  
  
  
<style>
.social-gallery {
  text-align: center;
  margin-left : 100px;
  margin-right : 100px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, 80px);
  gap: 50px; /* espace ENTRE images */
  justify-content: center; /* centre toute la grille */
  margin-bottom:2rem;
  margin-top : none;
}

.gallery-item {
  width: 80px;
  height: 80px;
  overflow: hidden;
  border-radius: 7px;
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}

.gallery-item:hover img {
  transform: scale(1.2);
  filter: grayscale(60%);
}

.more-btn .btn {
  display: inline-block;
  padding: 10px 20px;
  background-color: ;
  color: #ffe5c7; ;
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.3s;
}

.more-btn .btn:hover {
  color: rgba(255,255,255,0.7);;
}


.btn {
  display: inline-block;
  padding: 0.5rem 1.6rem;      /* taille du bouton */
  background-color: #577275;   /* couleur du bouton */
  color: white;                /* couleur du texte */
  margin-top : 10px;
  border-radius: 8px;          /* coins arrondis */
  font-weight: 600;
  text-decoration: none;       /* supprime le soulignement */
  transition: background 0.3s, transform 0.2s; /* effet au survol */
}

.btn:hover {
  background-color: #12474d;  /* couleur au survol */
  transform: scale(1.05);     /* léger zoom */
}
</style>



